﻿@model TCM.Level

@{
    ViewBag.Title = "Edit";
}

<h2>Edit <span class="FormTitle">@Html.DisplayFor(model => model.Name)</span></h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    
    
    <table style="width: 99.9%">
        <tr>
            <td class="IndexBack">
                @Html.ActionLink(" ", "Index")</td>
            <td style="text-align: right">
                </td>
        </tr>
    </table>

    <fieldset>
     <ol>     
         @Html.HiddenFor(Model=> Model.LevelID)

      

        
        <li class="editor-label">
            @Html.LabelFor(model => model.Name)
        
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </li>

        

        <li class="editor-label">
            @Html.LabelFor(model => model.Description)
        
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </li>

        <li class="editor-label">
          @Html.LabelFor(model => model.SubjectID, "Subject")
        
            @Html.DropDownList("SubjectID", String.Empty)
            @Html.ValidationMessageFor(model => model.SubjectID)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.Duration)
        
            @Html.EditorFor(model => model.Duration)
            @Html.ValidationMessageFor(model => model.Duration)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.Fees)
       
            @Html.EditorFor(model => model.Fees)
            @Html.ValidationMessageFor(model => model.Fees)
        </li>

     

       

        

        
    </ol>
        </fieldset>
    <p>
            <input type="submit" value="Save" />
        </p>
}
<br />
 <footer class="noPrint">

          <li class="display-label">
         @Html.DisplayNameFor(model => model.CreatedBy)
       
            @Html.DisplayFor(model => model.CreatedBy)
        </li>               
        <li class="display-label">
         @Html.DisplayNameFor(model => model.CreatedOn)
       
            @Html.DisplayFor(model => model.CreatedOn)
        </li>
        <li class="display-label">
         @Html.DisplayNameFor(model => model.ModifiedBy)
      
            @Html.DisplayFor(model => model.ModifiedBy)
        </li>
               
        <li class="display-label">
         @Html.DisplayNameFor(model => model.ModifiedOn)
       
            @Html.DisplayFor(model => model.ModifiedOn)
        </li>     
         </footer>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
